﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="CustomerDelete.aspx.cs"
    Inherits="CrmContacto.WebApp.App.CustomerDelete" %>

<%@ Import Namespace="Web.Framework.Translate" %>

<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="/Scripts/App/CustomerSearch.js" type="text/javascript"></script>
    <link href="/Styles/App/CustomerSearch.css" rel="stylesheet" type="text/css" />
    <%-- <script type="text/javascript">
        $(function () {
            $('#txtFechaDesde').datepick({ dateFormat: 'dd/mm/yyyy' });
            $('#txtFechaHasta').datepick({ dateFormat: 'dd/mm/yyyy' });
        });
    </script>--%>
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        <asp:Image Width="15px" Height="15px" ID="imgExpandResults" CssClass="imgExpand"
            ImageUrl="/Images/icon_blockcollapsed.png" runat="server" ClientIDMode="Static"
            alt="" onclick="window.AppCommon.toggleVisibility(this.id, 'pnlResults');" />
       <asp:Literal ID="Literal1" runat="server" Text='<%$ Code:  LocalizationProvider.Instance["Bo.BorrarContactos.Titulo"]%>' />
    </h2>
    <asp:ObjectDataSource ID="CustomerObjectDs" runat="server" TypeName="Web.Framework.Search.GridViewSearchObjectDataSource"
        SortParameterName="sortExpression" SelectMethod="GetObjects" SelectCountMethod="TotalNumberOfGetObjects" onselected="GridCustomer_Selected"
        EnablePaging="True" OnObjectCreating="CustomerObjectDs_ObjectCreating"></asp:ObjectDataSource>

    <asp:Panel ID="pnlResults" CssClass="editionContainerForGrid" runat="server" ClientIDMode="Static">
        <asp:GridView ID="GridCustomer" runat="server" CellPadding="4" ForeColor="#333333"
            GridLines="None" AutoGenerateColumns="False" DataKeyNames="Id" Width="100%" AllowPaging="True"
            PageSize="15" OnPageIndexChanging="GridCustomer_PageIndexChanging" OnRowDataBound="GridCustomer_RowDataBound" ondatabound="GridCustomer_DataBound">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="Id" HeaderText="Id" Visible="false">
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="Email" HeaderText='<%$ Code:  LocalizationProvider.Instance["Contacto.Email"] %>'>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="Nombre" HeaderText='<%$ Code:  LocalizationProvider.Instance["Contacto.Nombre"] %>'>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="Apellido" HeaderText='<%$ Code:  LocalizationProvider.Instance["Contacto.Apellido"] %>'>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="TipoDocumentoId" HeaderText='<%$ Code:  LocalizationProvider.Instance["Contacto.TipoDocumento"] %>'>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="Dni" HeaderText='<%$ Code:  LocalizationProvider.Instance["Contacto.Documento"] %>'>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="EstadoEmail" HeaderText='<%$ Code:  LocalizationProvider.Instance["Contacto.EstadoEmail"] %>'>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="FechaUltimaCompra" HeaderText='<%$ Code:  LocalizationProvider.Instance["Contacto.UltimaCompraShort"] %>' DataFormatString="{0:dd-MM-yyyy}">
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#4b6c9e" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
            <PagerStyle BackColor="#4b6c9e" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        <div class="commandBarDiv">
            <asp:LinkButton ID="lnkEliminar" runat="server" CssClass="lnkCmd" OnClientClick="javascript: return ConfirmDeletionSimple();"
                OnClick="lnkEliminar_Click" Text='<%$ Code:  LocalizationProvider.Instance["Bo.BorrarContactos.CmdEliminar"] %>'></asp:LinkButton>
            <span>|</span>
            <asp:LinkButton ID="lnkVolver" runat="server" CssClass="lnkCmd" OnClick="lnkVolver_Click" Text='<%$ Code:  LocalizationProvider.Instance["Bo.BorrarContactos.CmdVolverBusqueda"] %>'></asp:LinkButton>
            <div class="clear">
            </div>
        </div>
    </asp:Panel>
    <div class="clear">
    </div>
</asp:Content>
